<template>
  <div class="wrapper flex-center" v-if="!isTauri()">
    <el-empty description="非tauri环境">
      <el-button type="primary" @click="back">Home</el-button>
    </el-empty>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
import { isTauri } from "@/utils";

const router = useRouter();
const back = () => router.replace({ name: "Home" });
</script>

<style lang="scss" scoped>
.wrapper {
  height: 100vh;
  width: 100vw;
  background: #f7f7f7;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}
</style>
